import request from './services/request'
export default {
  getMessage(data) {
    return request({
      url: '/message/getMessage',
      method: 'GET',
      params: { data }
    })
  },
  saveOrder(data) {
    return request({
      url: 'userOrder/saveOrder',
      method: 'post',
      data
    })
  },
  getOrder(data) {
    return request({
      url: '/userOrder/getOrder',
      method: 'GET',
      params: { data }
    })
  },
  selectOne(id) {
    return request({
      url: `/goods/selectOne?id=${id}`,
      method: 'GET'
    })
  },
  deleteOrder(id) {
    return request({
      url: `/userOrder/deleteOrder?orderId=${id}`,
      method: 'GET'
    })
  },
  saveMessage(data) {
    return request({
      url: 'message/saveMessage',
      method: 'post',
      data
    })
  },
  changeStatus(data) {
    return request({
      url: 'userOrder/changeStatus',
      method: 'GET',
      params: { data }
    })
  }
}
